.include <bsd.init.mk>

.PATH:	${GOOGLETEST_SRCROOT}/src ${GOOGLETEST_SRCROOT}/test

GTESTS+=	googletest-death-test-test
GTESTS+=	googletest-filepath-test
GTESTS+=	googletest-listener-test
GTESTS+=	googletest-message-test
GTESTS+=	googletest-options-test
GTESTS+=	googletest-port-test
GTESTS+=	googletest-printers-test
GTESTS+=	googletest-test-part-test
GTESTS+=	gtest-typed-test_test
GTESTS+=	gtest_main_unittest
GTESTS+=	gtest_pred_impl_unittest
GTESTS+=	gtest_prod_test
GTESTS+=	gtest_skip_test
GTESTS+=	gtest_skip_in_environment_setup_test
GTESTS+=	gtest_sole_header_test
GTESTS+=	gtest_unittest

CXXFLAGS+=	-I${GOOGLETEST_SRCROOT}/include
CXXFLAGS+=	-I${GOOGLETEST_SRCROOT}

SRCS.gtest-typed-test_test=		\
	gtest-typed-test_test.cc	\
	gtest-typed-test2_test.cc

SRCS.gtest_prod_test=			\
	gtest_prod_test.cc		\
	production.cc

LIBADD+=	gtest_main

LIBADD.googletest-port-test+=	pthread
LIBADD.gtest_unittest+=		pthread

CXXFLAGS.clang+=	-Wno-error=missing-variable-declarations
CXXFLAGS.clang+=	-Wno-error=unused-but-set-variable
MK_WERROR.gcc=		no

.include <bsd.test.mk>
